home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Professional Soft Collection 1.02
/
Professional Soft Collection 1.02.iso
/
communic
/
bitfax.300
/
disk1
/
answer.sc_
/
answer.bin
Wrap
Text File
|
1994-04-19
|
2KB
|
55 lines
trace(1)
{ ANSWER.ACT}
{ This action file shows you how to use the new script language }
{ to turn your computer into a remote PC to which people can call in. }
{ This auto log file should be used in auto answer mode. }
{ When the phone rings, your modem answers and connects to the caller. }
{ The following actions then occur: }
{ The caller will be asked for a password. }
{ If caller types in "JONATHAN", he or she is allowed to proceed, }
{ otherwise, the system hangs up. }
{ If ok to proceed, the caller will be asked the name of the file to }
{ receive. Your PC will then send the file in ASCII mode. }
twait(2,"sec");
@c=1 {counter for number of attempts for password}
:try
@RETURN
"ENTER PASSWORD:" {get password}
@a=getline
if (substr(@a, 1, 8) <> "JONATHAN") goto :badpw
goto :ok
{bad news}
:badpw
"$0d$0ABAD PASSWORD";@return
@c = expr(@c+1);
if (@c > 5) goto :kill {if more than 5 tries, hang up the line}
goto :try
{ now we got a good pass word }
:ok
clear
typecr("LOGON OK");
"$0d$0a"
"$0d$0a"
"WELCOME TO BITCOM$0d$0a"
"What file would you like?"
@a=getline
@b=EXIST(@a)
"$0d$0a"
if (@b = 0 ) goto :badfile
if (sendfile(@a, "ASCII") = -1) "Cannot open file$0a$0d";
exit
:kill
"Too many attempts..."
hangup
exit
:badfile
"File Not Found$0d$0a";
exit